package com.example.myapplication.video.video_sift;

import android.os.Bundle;
import android.view.View;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.example.myapplication.R;
import com.shuyu.gsyvideoplayer.utils.OrientationUtils;
import com.shuyu.gsyvideoplayer.video.StandardGSYVideoPlayer;

public class Text_Video extends AppCompatActivity {
    private StandardGSYVideoPlayer fragVideoplay;
    private String s = "https://txmov2.a.yximgs.com/upic/2019/03/29/22/BMjAxOTAzMjkyMjU1MThfMTY3NDIzNzc3XzExNzc0OTM0NDMxXzJfMw==_b_Bc454d632fa368b2384a853460175b545.mp4";
    private OrientationUtils orientationUtils;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.item_video);
        initView();
    }

    private void initView() {
        fragVideoplay = (StandardGSYVideoPlayer) findViewById(R.id.frag_videoplay);
        fragVideoplay.setUp(s,false,"");

//        fragVideoplay.getStartButton().performClick();  //获取到开始播放按钮，模拟点击

    }
}
